package cn.xenosp.server.module.roleMenu.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 角色和菜单关联表
 * @TableName sys_role_menu
 */
@TableName(value ="sys_role_menu")
@Data
public class SysRoleMenu implements Serializable {
    /**
     * 自增编号
     */
    @TableId(value = "id")
    private String id;

    /**
     * 角色ID
     */
    @TableField(value = "role_id")
    private String roleId;

    /**
     * 菜单ID
     */
    @TableField(value = "menu_id")
    private String menuId;

    /**
     * 菜单名称
     */
    @TableField(value = "name")
    private String name;
    /**
     * 父菜单ID
     */
    @TableField(value = "parent_id")
    private String parentId;
    /**
     * 菜单图标
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 组件路径
     */
    @TableField(value = "component")
    private String component;
    /**
     * 内嵌、新标签页
     */
    @TableField(value = "visible")
    private String visible;

    @TableField(value = "type")
    private String type;
    @TableField(value = "sort")
    private String sort;
    @TableField(value = "permission")
    private String permission;

    /**
     * 创建者
     */
    @TableField(value = "creator",fill= FieldFill.INSERT)
    private String creator;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill= FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新者
     */
    @TableField(value = "updater",fill= FieldFill.INSERT_UPDATE)
    private String updater;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill= FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableField(value = "deleted")
    private Boolean deleted;

    /**
     * 租户编号
     */
    @TableField(value = "tenant_id")
    private String tenantId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}